Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Changing labels and formats
The default label for the Order Number field is Order Num (you define default labels in the Data Dictionary when you set up your database), and you might prefer that it just say Order. Also, the default display format for the ShipDate field is different from the format for the OrderDate field: one has a four-digit year and the other a two-digit year. You can change labels and default formats in your
DISPLAYstatement. If you add theLABELkeyword or theFORMATkeyword after the field name, followed by a string for the value you’d prefer, then the display changes accordingly.
![]()
To make such changes to your test procedure, change the OrderNum
LABELto Order and the ShipDateFORMATto 99/99/99.In the following example, each field has its own line in the code block, to make the code easier to read, and to emphasize doing that doesn’t change how the procedure works. Everything up to the period is one 4GL statement:
![]()
To view the results of these changes, Run your test procedure again:
![]()
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |